<?php defined('BASEPATH') OR die('No direct access allowed.');
/**
 * Description of "create-accounts"
 *
 * Created on Jan 19, 2011
 * @author Ramon Gutierrez
 * @copyright Bitstop Network Services Inc.
 * @version 0.1
 */
?>

            <div id="body">
              <div class="sectionhead"><?php echo $this->lang->line('subtitle_create_account'); ?></div>
              <div id="response"></div>
              <form id="theform" method="post" action="<?php echo site_url($module . '/create_ajax'); ?>">
              <div class="row">
                <div class="firstcol">
                  <div>
                    <span class="label"><?php echo $this->lang->line('first_name'); ?></span>
                    <input class="standard" style="font-weight: bold;" type="text" size="25" name="first_name" maxlength="32" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('last_name'); ?></span>
                    <input class="standard" style="font-weight: bold;" type="text" size="25" name="last_name" maxlength="32" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('username'); ?></span>
                    <input class="standard" style="font-weight: bold;" type="text" size="25" name="username" maxlength="32" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('password'); ?></span>
                    <input class="standard" style="font-weight: bold;" type="password" size="25" name="password" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('confirm_password'); ?></span>
                    <input class="standard" style="font-weight: bold;" type="password" size="25" name="confirm" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('assigned_branch'); ?></span>
                    <select class="standard" name="branch_id" id="branch_id">
                    <?php foreach($branches->result_array() as $row): ?>
                    <?php echo '<option value="' . $row['id'] . '">' . $row['name'] . '</option>'; ?>
                    <?php endforeach; ?>
                    </select>
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('assigned_service'); ?></span>
                    <select multiple="multiple" class="checklist" title="<?php echo $this->lang->line('assigned_service_select'); ?>" name="services[]" id="services">
                    <?php foreach($services->result_array() as $row): ?>
                    <?php echo '<option value="' . $row['id'] . '">' . $row['title'] . '</option>'; ?>
                    <?php endforeach; ?>
                    </select>
                  </div>
                </div>
                <div class="nextcol">
                  <div>
                    <span class="label"><?php echo $this->lang->line('street_address'); ?></span>
                    <input class="standard" type="text" size="50" name="street_address" maxlength="128" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('city'); ?></span>
                    <input class="standard" type="text" size="50" name="city" maxlength="128" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('state'); ?></span>
                    <input class="standard" type="text" size="50" name="state" maxlength="128" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('country'); ?></span>
                    <select class="standard ci" name="country_id" id="country_id">
                    <?php foreach($countries->result_array() as $row): ?>
                    <?php $selected = ($row['id'] == $this->session->userdata('country_id') ? ' selected="selected"' : ''); ?>
                    <?php echo '<option value="' . $row['id'] . '"' . $selected . '>' . $row['name'] . " ($row[abbreviation])" . '</option>'; ?>
                    <?php endforeach; ?>
                    </select>
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('zipcode'); ?></span>
                    <input class="standard" type="text" size="15" name="zip" maxlength="10" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('contact_number'); ?></span>
                    <input class="standard" type="text" size="25" name="contact_number" maxlength="32" />
                  </div>
                  <div>
                    <span class="label"><?php echo $this->lang->line('email'); ?></span>
                    <input class="standard" type="text" size="25" name="email" maxlength="64" />
                  </div>
                </div>
                <div class="clear"></div>
              </div>
              <div style="margin-top: 8px; font-size: 0.9em;">
                <div class="firstcol">
                  <a class="button-form submit" href="javascript:void(null);" id="btn-submit" style="margin-right: 8px;"><img src="<?php echo site_url('images/btn-submit.png'); ?>" alt="" /><?php echo $this->lang->line('create'); ?></a>
                  <noscript><div><input type="submit" value="<?php echo $this->lang->line('save_changes'); ?>" /></div></noscript>
                </div>
                <div class="nextcol" style="margin: 0;">
                  <a class="button-form" id="btn-back" style="margin-right: 8px;" href="<?php echo site_url($module); ?>"><img src="<?php echo site_url('images/btn-back.png'); ?>" alt="" /><?php echo $this->lang->line('nav_cancel'); ?></a>
                </div>
                <div class="clear"></div>
              </div>
              </form>
            </div>
            